<?php
namespace app\validate;

use think\Validate;

class CheckQuick extends Validate
{

    protected $rule =   [
        'title'  => 'require|length:2,50',
        'subtitle'  => 'require|length:2,50',
        'img'  => 'require',
        'logo'  => 'require',
        'url'  => 'require',
    ];

    protected $message  =   [
        'title.require' => '请填写副标题！',
        'title.length' => '标题在2-50个字符之间！',
        'subtitle.require' => '请填写副标题！',
        'subtitle.length' => '标题在2-50个字符之间！',
        'img.require' => '请上传背景图！',
        'logo.require' => '请上传logo！',
        'url.require' => '请填写跳转URL！',
    ];

}